package org.demo.spring.ioc.service.impl;

import org.demo.spring.ioc.model.Cat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class UserServiceImpl {

    @Autowired
    @Qualifier("cat1")
    private Cat cat;

    public void didi(){
        System.out.println(cat.getName());
    }
}
